using CxRomos.Core.Domain.Entities;
using FluentNHibernate.Mapping;

namespace CxRomos.Core.Domain.Mappings {
    public class ProfileAttributeMap : ClassMap<ProfileAttribute> {
        public ProfileAttributeMap() {
            Table("[dbo].[ProfileAttributes]");
            OptimisticLock.Version();
            LazyLoad();

            Id(x => x.ProfileAttributeId)
                .Column("ProfileAttributeId")
                .GeneratedBy.Identity();

            Map(x => x.Response);
            Map(x => x.CreatedDate);
        }
    }
}